#
# Broadcom web pages
#
# Copyright 2003, Broadcom Corporation
# All Rights Reserved.                
#                                     
# This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;   
# the contents of this file may not be disclosed to third parties, copied
# or duplicated in any form, in whole or in part, without the prior      
# written permission of Broadcom Corporation.                            
#
# $Id: Makefile,v 1.10 2003/05/30 01:30:42 mhuang Exp $
#

CLCOMP_VER=20130227
CLSS_VER=20111230
HTMLCOMP_VER=1.5.3

all: compiler.jar closure-stylesheets.jar htmlcompressor.jar web_tmp

compiler.jar:
	wget -nv -t 5 -T 20 -O - http://closure-compiler.googlecode.com/files/compiler-$(CLCOMP_VER).tar.gz | tar -xzf - compiler.jar

closure-stylesheets.jar:
	wget -nv -t 5 -T 20 -O closure-stylesheets.jar http://closure-stylesheets.googlecode.com/files/closure-stylesheets-$(CLSS_VER).jar

htmlcompressor.jar:
	wget -nv -t 5 -T 20 -O htmlcompressor.jar http://htmlcompressor.googlecode.com/files/htmlcompressor-$(HTMLCOMP_VER).jar

web_tmp:
	./mkweb tmp

install:
	rm -rf $(INSTALLDIR)/www && install -d $(INSTALLDIR)/www
	install -m 644 web_tmp/*.asp $(INSTALLDIR)/www
	install -m 644 web_tmp/*.inc $(INSTALLDIR)/www
	install -m 644 web_tmp/*.js $(INSTALLDIR)/www
	install -m 644 web_tmp/*.css $(INSTALLDIR)/www
	install -m 644 web_tmp/*.svg $(INSTALLDIR)/www
	install -m 644 web_tmp/*.ico $(INSTALLDIR)/www
	install -d $(INSTALLDIR)/www/img
	install -m 644 web_tmp/img/* $(INSTALLDIR)/www/img

clean:
	rm -rf web_tmp
